package number;

public class length {
	public static void main(String argsp[]) {
		String str="Be a rich man";
		int size=str.length();
		int size1 =str.lastIndexOf("m");
		System.out.println(size);
		System.out.println("the place in sentence is "+size1);
	}

}
